package com.aldobucchi.x.flash.events
{



	import flash.events.Event;




	/**
	 * 
	 * A super generic event that indicates a value has changed
	 * 
	 * @author aldo.bucchi@gmail.com
	 * 
	 */
	public class ValueChangedEvent extends Event
	{
		
		public static const VALUE_CHANGED:String = "valueChanged";
		
		
		private var _value:*;
		public function get value( ):*
		{
			return _value;
		}
			
		
		public function ValueChangedEvent( type:String, value:*=undefined, bubbles:Boolean=false, cancelable:Boolean=false )
		{
			
			_value = value;
			
			super( type, bubbles, cancelable );
		}
		
		
		
		override public function clone():Event
		{
		
			return new ValueChangedEvent( type, value, bubbles, cancelable );
		
		}
		

	}

}
